package com.jsu.springboot_medicine.service;

import com.jsu.springboot_medicine.entity.Message;

import java.util.List;

/**
 * @Author wang
 * @Date 2023/9/26 9:04
 */
public interface MessageService {
    List<Message> getAllByReceiver(int receiver);

    List<Message> getAllMessage();
    List<Message> selectByTitle(String title);
    List<Message> selectByName(String name);
    List<Message> selectByStatus(Integer status);
    int getReadNum();
    int getUnreadNum(int id);

    int updateStatus(int id);
    void addMessage(Message message);
    void updateMessage(Message message);
    int deleteMessage(int id);
}
